#ifndef ARMSITEM_H
#define ARMSITEM_H
#include "manitem.h"

class ArmsItem : public ManItem
{
    Q_OBJECT
public:
    ArmsItem(MANTYPE armtp);

    virtual void    SetDetectX();
    virtual void    Go();
    virtual bool    IsTurn();
    virtual void    paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);

    void    BulletLogic();
    void    initBullet();
public:
    int         m_iFlyNum;
    bool        m_bHalf;

    float       m_endY;
    bool        m_bShowBullet;
    float       m_fBulletOpacity;
    float       m_beginY;
    float       m_leftX;
    float       m_rightX;
public slots:
    virtual void logic();
    virtual void Fire();

signals:
    void FireSignal(const int& iIndex,const int& iArmsTp);
};

#endif // ARMSITEM_H
